import { request } from "@/api/request.js";

// 获取当前用户信息
export function getUserInfo() {
    return request({
        url: "/user/getUserInfo",
        method: "GET"
    });
}

// 更新用户信息
export function updateUserInfo(data) {
    return request({
        url: "/user/updateUserInfo",
        method: "PUT",
        data: data
    });
}

// 修改用户密码
export function updateUserPassword(data) {
    return request({
        url: "/user/updateUserPassword",
        method: "PUT",
        data: data
    });
}